import request from '@/utils/request'




const BASE_URL='/admin/system/sysChargeItems';

export default{

    getPageList(page,limit,searchObj){
      return request({
            url:`${BASE_URL}/${page}/${limit}`,
            method:'get',
            params:searchObj
        })
    },

    getItemById(id){
        return request({
            url:`${BASE_URL}/getItemById/${id}`,
            method:'get',
            
        })
    },

    updateItemById(chargeItem){
        return request({
            url:`${BASE_URL}/updateItemById`,
            method:'post',
            data:chargeItem
        })
    },

    removeItemById(id){
        return request({
            url:`${BASE_URL}/removeItemById/${id}`,
            method:'delete',
            
        })
    },

    removeItemByIds(ids){
        return request({
            url:`${BASE_URL}/removeItemByIds`,
            method:'delete',
            data:ids
        })
    },

    addItem(chargeItem){
        return request({
            url:`${BASE_URL}/addItem`,
            method:'post',
            data:chargeItem
        })
    },





    
}